home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM BV3 / BMUG PD-ROM Version BV3 (CDRM1097900).iso / HyperCard / Games / Balloons!1.1 / Balloons!1.1 / stack_-1.xml < prev    next >
Extensible Markup Language  |  1991-11-03  |  5KB  |  34 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in.1</name>
  5.     <id>-1</id>
  6.     <cardCount>13</cardCount>
  7.     <cardID>2979</cardID>
  8.     <listID>10927</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>342</height>
  15.     </cardSize>
  16.     <script>on openStackglobal isSixif item 4 of the screenRect <= 342 then hide menuBarhide msgcheckHelpMgrif isSix then exit openStackif balloons("isOn") then put "On" into balloonStatuselse put "Off" into balloonStatusget balloons("On")go cd 1 -- in case user popped cdput the loc of btn "on/off" into tipset the hilite of btn "on/off" to trueput Balloons("ShowPICT", 1515, tip) into helpResultrepeat until "-853" is not in helpResultput Balloons("ShowPICT", 1515, tip) into helpResultend repeatput the ticks into waitStartrepeat until the ticks - waitStart >= 180if the mouseClick then exit repeatend repeatget balloons(balloonStatus) -- restoreif not balloons("isOn") then set the hilite of btn "on/off" to falseremoveABalloon -- in case status = onend openStackon checkHelpMgrglobal isSixput (balloons("isOn") contains "Error") into isSixif isSix thenanswer "This stack is fully functional only under " ¬¨& "System 7.0 when the Help Manager is present." ¬¨& "The Help Manager is not detected on this Mac. You may " ¬¨& "read the information in this stack without accessing the " ¬¨& "help balloons, or you may return to your Home stack." ¬¨with "Home" or "Continue"if it is "home" thengo homeexit to HyperCardend ifend ifend checkHelpMgron errorMsgglobal isSixif isSix thenanswer "Cannot turn on Balloon Help; the Help Manager is not present on this Macintosh."exit to HyperCardend ifend errorMsg------------------ Balloon Help Handlers and Functions -----------------on ShowABalloon helpMessage,location,versionif location is empty then put calcTip() into locationif version is empty then put 0 into versionput Balloons("show",helpMessage,location,version) into helpResultrepeat until "-853" is not in helpResultput Balloons("show",helpMessage,location, version) into helpResultend repeatend ShowABalloonon ShowAPict pictResourceIDput calcTip() into tipput Balloons("ShowPICT", pictResourceID, tip) into helpResultrepeat until "-853" is not in helpResultput Balloons("ShowPICT", pictResourceID, tip) into helpResultend repeatend ShowAPicton ShowStyledText styledResourceID,location,versionif location is empty then put calcTip() into locationif version is empty then put 0 into versionput Balloons("ShowStyle", styledResourceID, location,version) into helpResultrepeat until "-853" is not in helpResultput Balloons("ShowStyle", styledResourceID, location,version) into helpResultend repeatend ShowStyledTexton ShowAString STRResourceID, theTip, versionif theTip is empty then put calcTip() into tipelse put theTip into tipput Balloons("ShowSTR", STRResourceID, tip, version) into helpResultrepeat until "-853" is not in helpResultput Balloons("ShowSTR", STRResourceID, tip, version) into helpResultend repeatend ShowAStringon ShowASTRLIst STRResourceID, index, theTip, versionif theTip is empty then put calcTip() into tipput STRResourceID && "," && index into resourceRecordput Balloons("ShowSTRList", resourceRecord, tip, version) into helpResultrepeat until "-853" is not in helpResultput Balloons("ShowSTRList", resourceRecord, tip, version) into helpResultend repeatend ShowASTRListon RemoveABalloonget Balloons("Remove")end RemoveABalloonfunction calcTipput the botRight of the target into tipsubtract 10 from item 1 of tipsubtract 10 from item 2 of tipreturn tipend calcTip</script>
  17.     <background id="2740" file="background_2740.xml" name="Contents" />
  18.     <background id="3999" file="background_3999.xml" name="Balloons" />
  19.     <background id="9908" file="background_9908.xml" name="Balloons" />
  20.     <card id="2979" file="card_2979.xml" marked="false" name="title" owner="2740" />
  21.     <card id="7651" file="card_7651.xml" marked="false" name="Copyright/License" owner="2740" />
  22.     <card id="2226" file="card_2226.xml" marked="false" name="What'sNew" owner="2740" />
  23.     <card id="4139" file="card_4139.xml" marked="false" name="General Syntax" owner="3999" />
  24.     <card id="4575" file="card_4575.xml" marked="false" name="Utility Calls" owner="3999" />
  25.     <card id="5335" file="card_5335.xml" marked="false" name="Standard Display Calls" owner="3999" />
  26.     <card id="5879" file="card_5879.xml" marked="false" name="Optional Parameters" owner="3999" />
  27.     <card id="6352" file="card_6352.xml" marked="false" name="Create Strings" owner="3999" />
  28.     <card id="9189" file="card_9189.xml" marked="false" name="Create String Lists" owner="3999" />
  29.     <card id="8647" file="card_8647.xml" marked="false" name="Create PICTs" owner="3999" />
  30.     <card id="9632" file="card_9632.xml" marked="false" name="Easel" owner="9908" />
  31.     <card id="8024" file="card_8024.xml" marked="false" name="Create Styled Text" owner="3999" />
  32.     <card id="6726" file="card_6726.xml" marked="false" name="Error Messages/Return Values" owner="3999" />
  33. </stack>
  34.